package com.frank.subject.domain.service;

import com.frank.subject.domain.entity.SubjectLabelBo;

import java.util.List;

/**
 * @author Climb Zou
 * @version v0.0.1
 * @date 2024/1/23 14:22
 */
public interface SubjectLabelDomainService {

    /**
     * Insert label
     * @param subjectLabelBO label
     */
    void insert(SubjectLabelBo subjectLabelBO);

    /**
     * Update label
     * @param subjectLabelBO label
     * @return update result
     */
    Boolean update(SubjectLabelBo subjectLabelBO);

    /**
     * Delete label
     * @param subjectLabelBO label
     * @return delete result
     */
    Boolean deleteByPrimary(SubjectLabelBo subjectLabelBO);

    /**
     * 查询分类下标签
     * @param subjectLabelBO label
     * @return label list
     */
    List<SubjectLabelBo> queryLabelByCategoryId(SubjectLabelBo subjectLabelBO);
}
